package com.gsezone.s12;

import java.util.ArrayList;
import java.util.List;

import com.gsezone.s12.model.not.User;

public class MyRemoveFromListNotWorking {

	public static void main(String[] args) {

		List<User> users = new ArrayList<>();

		User uId1 = new User(1l, "Grzegorz");
		User uId1_theSameId = new User(1l);

		users.add(uId1);
		System.out.println(users.size());

		users.remove(uId1_theSameId);
		System.out.println(users.size());

	}

}
